$(function(){
	//轮播
	var swiper = new Swiper('.swiper-container', {
		autoplay: 3000,
		autoplayDisableOnInteraction : false,
        pagination: '.swiper-pagination',
        paginationClickable: true,
        onAutoplay: function(swiper){
        	$('.zh_art_bannerInfo p').text(swiper.activeIndex+'孕妇腹泻多是饮食因素试试水果止泻法')
		},
		onSlideChangeStart: function(swiper){
	      $('.zh_art_bannerInfo p').text(swiper.activeIndex+'孕妇腹泻多是饮食因素试试水果止泻法')
	    }
    });


    $('.zh_title_imgTab1').on('click',function(){
    	$(this).hide();
    	$('.zh_title_imgTab2').show();
    	$('.zh_art_bar').slideDown();
    });

    $('.zh_title_imgTab2').on('click',function(){
    	$(this).hide();
    	$('.zh_title_imgTab1').show();
    	$('.zh_art_bar').slideUp();
    });

    $('.zh_art_tab01 li').on('click',function(){
    	$(this).siblings('li').find('span').removeClass('zh_art_tab01Current');
    	$(this).find('span').addClass('zh_art_tab01Current');
    });
})